package my.project.admin.service;

import my.project.admin.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zc
 * @since 2021-05-12
 */
public interface ISysUserService extends IService<SysUser> {

    SysUser getByUsername(String username);

    String getUserAuthority(Long userId);

    void clearUserAuthorityCacheByUsername(String username);

    void clearUserAuthorityCacheByRoleId(Long roleId);

    void clearUserAuthorityCacheByMenuId(Long menuId);
}
